<!DOCTYPE html>
<html lang="en">
<head>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录页面</title>
    <meta charset="UTF-8">
    <link href="login.css" rel="stylesheet" type="text/css">
    
    <script type="text/javascript">
    function checkrepeat(){
    	
    	logininformation.submit();
    }
    
    
    </script>
   
</head>
<body background="bg7.jpg" style=" background-repeat:no-repeat;
      background-size:100%100%;background-attachment:fixed;">

<%
    Object message = session.getAttribute("message1");
    if(message!=null && !"".equals(message)){

 %>
      <script type="text/javascript">
          alert("<%=message%>");
      </script>
      
  <%
  session.removeAttribute("message1");
    } %>

<div class="wrapper"  >
    <div class="header" >登录通讯录系统 <span></span></div>
    <form name="logininformation" action="CheckLogin" method="post">
        <ul>
            <li>
                <div class="text">
                    <span class="yonghu"></span><input type="text" name="username" placeholder="请输入用户名">
                </div>
            </li>
            <li>
                <div class="password">
                    <span class="mima"></span><input type="password" name="password" placeholder="请输入密码">
                </div>
            </li>
            <li >
            </li>
            <li>
            <input type="button" value="登陆" onClick="checkrepeat()"> <br>
                <input type="button" value="注册" onClick="javascrtpt:window.location.href='registration.jsp'">
            </li>
              <li>
            </li>
        </ul>
    </form>
   
</div>
</body>
</html>